package com.example.service.Impl;

import com.example.Domain.Manual;
import com.example.Mapper.ManualMapper;
import com.example.service.ManualService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ManualServiceImpl implements ManualService {
    @Autowired
    private ManualMapper manualMapper;
    /*
    * 手册分类
    * */
    @Override
    public List<Manual> manualtype(String manual) {
        return manualMapper.manualtype(manual);
    }
/*
* 资源管理：手册资源
* */
    @Override
    public List<Manual> manualall() {
        return manualMapper.manualall();
    }

    @Override
    public boolean manualdelete(Integer id) {
        return manualMapper.manualdelete(id);
    }

    @Override
    public boolean manualupdate(Manual manual) {
        return manualMapper.manualupdate(manual);
    }

    /*
    * 添加手册
    * */
    @Override
    public boolean manualinsert(Manual manual) {
        return manualMapper.manualinsert(manual);
    }

    @Override
    public List<Manual> ordertime(Integer pageNum, Integer pageSize) {
        return manualMapper.ordertime();
    }

    @Override
    public List<Manual> updateecho(Integer id) {
        return manualMapper.updateecho(id);
    }

    /*
* 模糊查询
* */
    @Override
    public List<Manual> likeselect(String manualName,Integer pageNum,Integer pageSize) {
        return manualMapper.likeselect(manualName);
    }
}
